package com.pn.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product implements Serializable {

    private Integer productId;

    private Integer storeId;

    private Integer brandId;

    private String productName;

    private String productNum;

    private Integer productInvent;

    private Integer typeId;

    private Integer supplyId;

    private Integer placeId;

    private Integer unitId;

    private String introduce;

    /**
     * 0 下架 1 上架
     */
    private String upDownState;

    private BigDecimal inPrice;

    private BigDecimal salePrice;

    private BigDecimal memPrice;

    private Date createTime;

    private Date updateTime;

    private Integer createBy;

    private Integer updateBy;

    private String imgs;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date productDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date suppDate;

    /*--------------------追加属性--------------------*/

    /*品牌名称*/
    private String brandName;

    /*供应商名称*/
    private String supplyName;

    /*产地名称*/
    private String placeName;

    /*分类名称*/
    private String typeName;

    /*是否过期*/
    private Integer isOverDate;

    /*仓库名称*/
    private String storeName;

    /*计量单位名称*/
    private String unitName;


}